Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naturalcycles/nodejs-lib

Package Overview
Dependencies
Maintainers
3
Versions
414
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/nodejs-lib

Standard library for Node.js

  • 9.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9K
decreased by-56.61%
Maintainers
3
Weekly downloads
 
Created
Source

@naturalcycles/nodejs-lib

Standard library for Node.js

npm publish size install size Maintainability Test Coverage code style: prettier

Features

  • Validation (based on Joi)
  • debug (based on debug) with .warn(), .error() levels
  • env.util
  • zip.util
  • id.util (based on nanoid)
  • hash.util
  • process.util (cpu, memory, etc)
  • lruMemoCache (implementation of MemoCache based on lru-cache)
  • SlackService

What should go in this lib

  • Only battle-tested code with solid proven APIs that are not supposed to change.
  • Only fully unit-tested code with coverage close to 100%. All the branches should absolutely be tested.
  • Only generic and broad purpose functions, no domain or project-specific code.

Exports

  • / root
  • /bin cli
    • yargs
  • /script
    • exports runScript lightweight function (0 deps)
  • /exec
    • execa
  • /colors
    • only chalk

Packaging

  • engines.node: Latest Node.js LTS
  • main: dist/index.js: commonjs, es2018
  • types: dist/index.d.ts: typescript types
  • /src folder with source *.ts files included

FAQs

Package last updated on 13 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc